package NowCoderHuaWei;
import java.util.*;
public class Test01{
    public static void main(String[] args)
        {
        Scanner in=new Scanner(System.in);
        while(in.hasNext())
            {
            String str[]=in.nextLine().split(" ");
            System.out.println(str[str.length-1].length());
        }
        in.close();
    }
}